import request from '@/utils/request'

// 查询故障类型列表
export function listReportType(query) {
  return request({
    url: '/report/ReportType/list',
    method: 'get',
    params: query
  })
}

// 查询故障类型详细
export function getReportType(id) {
  return request({
    url: '/report/ReportType/' + id,
    method: 'get'
  })
}

// 新增故障类型
export function addReportType(data) {
  return request({
    url: '/report/ReportType',
    method: 'post',
    data: data
  })
}

// 修改故障类型
export function updateReportType(data) {
  return request({
    url: '/report/ReportType',
    method: 'put',
    data: data
  })
}

// 删除故障类型
export function delReportType(id) {
  return request({
    url: '/report/ReportType/' + id,
    method: 'delete'
  })
}
